package jsyf.oa.entity.system;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by WHH-PC on 2018/1/12.
 */
@Entity
@Table(name = "T_SYS_WECHAT_SHARE_DETAIL", schema = "oa", catalog = "")
public class WechatShareDetailEntity extends BaseEntity {

    /**
     * 分享Id
     */
    private String wechatShareId;

    /**
     *用户Id
     */
    private String userId;

    /**
     * 创建人
     */
    private String createUserId;

    /**
     *公司Id
     */
    private String companyId;



    public String getWechatShareId() {
        return wechatShareId;
    }

    public void setWechatShareId(String wechatShareId) {
        this.wechatShareId = wechatShareId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", getId());
        obj.put("WECHAT_SHARE_ID", getWechatShareId());
        obj.put("COMPANY_ID", getCompanyId());
        obj.put("USER_ID", getUserId());
        obj.put("CREATE_USER_ID", getCreateUserId());
        obj.put("CREATE_TIME", getCreateTime());
        obj.put("DEL_FLAG", getDelFlag());
        return obj;
    }

    @Override
    public String getTableName() {
        return "T_SYS_WECHAT_SHARE_DETAIL";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("WECHAT_SHARE_ID", "wechatShareId");
        obj.put("COMPANY_ID", "companyId");
        obj.put("USER_ID", "userId");
        obj.put("CREATE_USER_ID", "createUserId");
        obj.put("CREATE_TIME", "createTime");
        obj.put("DEL_FLAG", "delFlag");
        return obj;
    }
}
